package com.umeox.watch.moto.dataservice.db.dao;

import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;

import com.umeox.watch.moto.dataservice.db.model.PrayerSetting;

/**
 * Created by Rambo 2021/9/18
 * Describe:
 */
@Dao
public interface PrayerSettingDao {

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    long save(PrayerSetting prayerSetting);

    @Query("DELETE FROM prayer_setting")
    int deleteAll();

    @Query("SELECT * FROM prayer_setting LIMIT 1")
    PrayerSetting loadLocalSettings();

}
